package ysq.xyg.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import ysq.xyg.base.BaseDao;
import ysq.xyg.model.WinNum;

import java.util.List;

@Repository
public interface WinNumDao extends BaseDao<WinNum> {
    public List<WinNum> selectEntityLeft(WinNum winNum);

    int updateByNum(@Param("memberId") String memberId, @Param("activityId") String activityId);

    int insertEntityList(List<WinNum> list);

    long selectCountNoMember(@Param("activityId") String activityId);

    WinNum selectRandOneWinNum(@Param("activityId") String activityId);

    long selectCountWin(@Param("activityId") String activityId);

    int updateList(@Param("memberId") String memberId, @Param("activityId") String activityId, @Param("list") List<String> list);

    List<WinNum> selectEntityNoNum(@Param("activityId")String activityId);

    List<WinNum> selectEntity(WinNum record);
}